<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<link href="css/main.css?v=d4c89955dc8ad6705982" rel="stylesheet">
		<link rel="stylesheet" href="css/register.css" />
		<link rel="stylesheet" href="css/swiper.min.css" />
		<link rel="stylesheet" href="css/video-js.min.css" />
		<link rel="stylesheet" href="css/newbase.css" />
		<link rel="stylesheet" href="css/newstyle.css" />
		<link rel="stylesheet" href="css/neworder.css" />
		<link rel="stylesheet" href="css/iconfont.css" />
	</head>
	<body style="background-color: #000000;">
		<div class="navigation animated">
			<script type="text/javascript" src="https://api.map.baidu.com/api?ak=dZjnRr2t8nBpGswyCB731AFD&v=2.0&s=1"></script>
			<div id="allmap" style="display:none;"></div>
			<div class="nav-wrap">
				<h1 class="logo">
					<a href="javascript:;"><img src="images/UU-logo.png" alt="uu-logo" height="75px"></a>
				</h1>
				<div class="nav">
					<ul class="nav-list clearfix">
						<li>
							<a href="index.html" title="首页">首页</a>
						</li>
					</ul>
					<div style="clear:both;"></div>
				</div>
				<div class="button-group">

					<ul class="button-list welcome" id="userinfo">
						<li>
							<a href="#" class="port fl"><img src="images/port.png" width="22" height="22"style="margin-bottom: 20px;margin-right: 10px;" />登录</a>

						</li>
						<li style="display: none;">
							<p class="username fl">欢迎您，<span id="userMobile"></span>
							</p>
							<a class="loginout" href="javascript:order.loginOut()">退出</a>
						</li>
					</ul>
				</div>
			</div>
		</div>
		<div data-v-14151921="" class="contentBox" style="background-image: url(images/contentBack.png);background-size: 100% 100%;width:100%;height: 100%;position:absolute; ">
			<div data-v-14151921="" class="content">
				<div data-v-14151921="" element-loading-text="拼命登录中" class="login">
					<div class="loginBox">
						<div class="loginHead"><span class="text-shadow" style="margin-left: 50px;color: #00ff24;font-size: 35px;">用户登录</span></div>
						<div class="loginContent">
							<div class="mobile"><input id="username" type="tel" maxlength="11" placeholder="请输入手机号">
								<!---->
							</div>
							<div class="password mobile"><input id="password" type="password" placeholder="请输入密码">
								<!---->
							</div>
							<div id="geetest" style="display: none;"></div>
							<input type="button" value="登录" class="loginBtn" id="loginBtn" />
							<div class="registerBox">还没有账号？<a href="rigister.html">马上注册</a> <span class="fr" style="text-decoration: none;">忘记密码？</span></div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</body>
	<script src="js/jquery-1.7.2.min.js"></script>
	<script>
		$(function () {
            function login() {
                var username = $("#username").val();
                var password = $("#password").val();
                if (username == "" || password == ""){
                    alert("账户或密码不能为空");
                    return;
                }
                var reg = /^1[34578][0-9]{9}$/; //验证规则，
                if (!reg.test(username)){
                    alert("你的手机号码格式不正确");
                    return;
                }
                $.ajax({
                    url:"/login",
                    type:"post",
                    dataType:"json",
                    data:{"account":username,"password":password},
                    success:function (data) {
                        if (data.success){
                            window.location.href = data.obj;
                        }else {
                            alert(data.msg);
                        }
                    }
                })
            }
            $("#loginBtn").click(function () {
				login();
            })
        })
	</script>

</html>